﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Register.aspx.cs" Inherits="_Default" Title="用户注册" %>

<%@ Register Src="../UserControl/RecommendInfo.ascx" TagName="RecommendInfo" TagPrefix="uc2" %>

<%@ Register Src="../UserControl/InfoSearch.ascx" TagName="InfoSearch" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script language="javascript" type="text/javascript">
function typeChange(obj)
{
//document.getElementById("spAddress").value=
//.options[0].selected = true
var id=obj.id.substring(0,obj.id.lastIndexOf("_"))+"_tbComname";
var tbComname=document.getElementById(id);
if(obj.options[0].selected)
{
tbComname.style.display ="";
document.getElementById("spComname").innerHTML="企业名称:";
document.getElementById("spAddress").innerHTML="企业地址:";
document.getElementById("spOrgDetail").innerHTML="企业简介:";

}
else if(obj.options[1].selected)
{
tbComname.style.display ="";
document.getElementById("spComname").innerHTML="机构名称:";
document.getElementById("spAddress").innerHTML="机构地址:";
document.getElementById("spOrgDetail").innerHTML="机构简介:";
}
else
{
document.getElementById("spComname").innerHTML="";
tbComname.style.display = "none";
document.getElementById("spAddress").innerHTML="住址:";
document.getElementById("spOrgDetail").innerHTML="个人简介:";
}
}
</script>
    <table cellpadding="0" cellspacing="0" width="777" bgcolor="#ffffff" background="images/beij.jpg">
        <tr>
            <td align="center" valign="top" width="100">
                
            </td>
            <td align="right">
        <asp:Panel ID="Panel1" runat="server" BorderStyle="Solid" BorderWidth="0px" 
                    Width="566px" Height="600px" style="text-align: left">
                    
            <table border="0" cellspacing="0" style="width: 103%; height: 56px;">
            <tr><td>
                <br />
                </td></tr>
                <tr>
                    <td style="font-size: 18px; font-family: 黑体;
                        text-align: center;">
                        <br />
                       
                        用户协议<br />
                        <br />
                    </td>
                </tr>
            </table>
            <table border="0" cellspacing="0" 
                style="width: 106%; margin-left: 0px; height: 170px;">
                <tr>
                    <td style="width: 540px; height: 17px;">
                        &nbsp; &nbsp; 为维护网上公共秩序和社会稳定，请您自觉遵守以下条款：<br />
                        <br />
                        一、不得利用本站危害国家安全、泄露国家秘密，不得侵犯国家社会集体的和公民的合法权益， 不得利用本站制作、复制和传播下列信息：
                        <ul>
                            <li>（一）煽动抗拒、破坏宪法和法律、行政法规实施的； </li>
                            <li>（二）煽动颠覆国家政权，推翻社会主义制度的； </li>
                            <li>（三）煽动分裂国家、破坏国家统一的； </li>
                            <li>（四）煽动民族仇恨、民族歧视，破坏民族团结的； </li>
                            <li style="width: 500px; height: 19px;">（五）捏造或者歪曲事实，散布谣言，扰乱社会秩序的； </li>
                            <li style="text-align: left">（六）宣扬封建迷信、淫秽、色情、暴力、凶杀、恐怖、教唆犯的； </li>
                            <li>（七）公然侮辱他人或者进行其他恶意攻击的； </li>
                            <li>（八）损害国家机关信誉的； </li>
                            <li>（九）其他违反宪法和法律行政法规的； </li>
                            <li>（十）进行商业广告行为的。 </li>
                        </ul __designer:mapid="57">
                        二、互相尊重，对自己的言论和行为负责。</td>
                </tr>
            </table>
            <table border="0" cellspacing="0" style="width: 100%">
            <tr><td style="height:10px"></td></tr>
                <tr>
                    <td style="width: 296px; text-align: right">
                        <asp:RadioButton ID="RB1" runat="server" GroupName="sum" Text="同意" /></td>
                    <td>
                        <asp:RadioButton ID="RB2" runat="server" GroupName="sum" Text="不同意" /></td>
                </tr>
            </table>
            <table border="0" cellspacing="0" style="width: 103%">
            <tr><td style="height:10px"></td></tr>
                <tr>
                    <td style=" height: 22px;text-align:center">
                        <asp:Button ID="BT1" runat="server" Text="下一步" OnClick="BT1_Click" 
                            Width="89px" /></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" BorderStyle="Solid" BorderWidth="0px" 
                    Width="566px" Height="600px" Visible="False" style="text-align: left">
            <table border="0" cellspacing="0" 
                
                style="width: 100%; margin-right: 1px;  margin-bottom: 0px;" align="right">
                <tr><td style=" height: 36px;"></td></tr>
                <tr>
                    <td colspan="2" 
                        
                        
                        
                        style="font-size: 18px;  font-family: 黑体;
                       text-align:center; height: 43px; text-align: left;">
                        &nbsp;&nbsp;&nbsp; 注册信息&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                </tr>
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right; ">
                         类 别:&nbsp; </td>
                    <td style="height: 30px; color: red;">
                        <asp:DropDownList ID="type" runat="server">
                            <asp:ListItem Value="企业用户">企业用户</asp:ListItem>
                            <asp:ListItem Value="科研机构">科研机构</asp:ListItem>
                            <asp:ListItem Value="专业人士">专业人士</asp:ListItem>
                        </asp:DropDownList>
                        </td>
                </tr>
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right;">
                        用 户 名:&nbsp; </td>
                    <td style="height: 30px; color: red;">
                        <asp:TextBox ID="name" runat="server" Width="120px" MaxLength="9"></asp:TextBox>
                        *<div>
                            <asp:Label ID="lbName" runat="server" Text="Label"></asp:Label></div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name"
                            Display="Dynamic" ErrorMessage="用户名不能为空" ValidationGroup="v1"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="name"
                                ErrorMessage="用户名必须是2-9位数字或字母或它们的组合" ValidationExpression="[a-zA-Z0-9]{2,9}"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right; ">
                        密 &nbsp;&nbsp;码:&nbsp; </td>
                    <td style="height: 30px; color: red; ">
                        <asp:TextBox ID="password" runat="server" TextMode="Password" Width="120px" MaxLength="20"></asp:TextBox>
                        *
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="password"
                            Display="Dynamic" ErrorMessage="密码不能为空" ValidationGroup="v1"></asp:RequiredFieldValidator>
                        &nbsp;
                            <br /><asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="password"
                                ErrorMessage="密码必须为6-20位字母、数字或它们的组合" ValidationExpression="[a-zA-Z0-9]{6,20}" ValidationGroup="v1"></asp:RegularExpressionValidator>
                        </td>
                </tr>
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right;">
                        &nbsp; &nbsp; &nbsp; 确认密码:&nbsp; </td>
                    <td style="height: 30px; color: red;">
                        <asp:TextBox ID="TB3" runat="server" TextMode="Password" Width="120px"></asp:TextBox>
                        *
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TB3"
                            Display="Dynamic" ErrorMessage="确认密码不能为空" ValidationGroup="v1"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="password"
                            ControlToValidate="TB3" Display="Dynamic" ErrorMessage="密码不一致" ValidationGroup="v1"></asp:CompareValidator></td>
                </tr>
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right; ">
                        <span id="spComname">企业名称:</span>
                        </td>
                    <td style="height: 30px; color: red; ">
                        <asp:TextBox ID="tbComname" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                </tr>  
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right; ">
                        <span id="spAddress">企业地址:</span>
                        </td>
                    <td style="height: 30px; color: red; ">
                        <asp:TextBox ID="tbAddress" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                </tr>  
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right; ">
                        <span id="spOrgDetail">企业简介:</span></td>
                    <td style="height: 30px; ">
                        <asp:TextBox ID="tbOrgDetail" Height="100px" Width="320px" runat="server" MaxLength="500" TextMode="MultiLine"></asp:TextBox>
                        (500字以内)</td>
                </tr>  
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right; ">
                        EMAIL:&nbsp; </td>
                    <td style="height: 30px; color: red; ">
                        <asp:TextBox ID="email" runat="server"></asp:TextBox>
                        *<div>
                            <asp:Label ID="msg" runat="server" Text="Label"></asp:Label></div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="email"
                            Display="Dynamic" ErrorMessage="EMAIL不能为空" ValidationGroup="v1"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" ControlToValidate="email"
                            Display="Dynamic" ErrorMessage="格式不合法" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ValidationGroup="v1"></asp:RegularExpressionValidator></td>
                </tr>  
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right; ">
                        QQ:&nbsp; </td>
                    <td style="height: 30px; color: red; ">
                        <asp:TextBox ID="qq" runat="server"></asp:TextBox>
                        <br /><asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="qq"
                                ErrorMessage="请输入正确qq号" ValidationExpression="[0-9]{5,20}"></asp:RegularExpressionValidator>
                        </td>
                </tr>  
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right; ">
                        MSN:&nbsp; </td>
                    <td style="height: 30px; color: red; ">
                        <asp:TextBox ID="msn" runat="server"></asp:TextBox><br />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="msn"
                            Display="Dynamic" ErrorMessage="格式不合法" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ValidationGroup="v1"></asp:RegularExpressionValidator>
                        </td>
                </tr>  
                <tr>
                    <td style="width: 100px; height: 30px; text-align: right; ">
                         联系电话(或手机):&nbsp; </td>
                    <td style="height: 30px; color: red;">
                        <asp:TextBox ID="tel" runat="server" ></asp:TextBox>
                        *<br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="tel"
                            Display="Dynamic" ErrorMessage="联系电话不能为空" ValidationGroup="v1"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tel"
                                ErrorMessage="格式：电话(3/4位)-（7/8位）手机11位" 
                                ValidationExpression="(\d{11})|((\(\d{3,4}\)|\d{3,4}-)?\d{7,8})" ValidationGroup="v1"></asp:RegularExpressionValidator>
                        </td>
                </tr>
                <tr>
                <td ></td>
                <td style="width: 100px; height: 30px; text-align: left; ">
                <asp:TextBox ID="lblCheckCode" runat="server" Text="1234" Font-Size="12pt" 
                        Width="46px" style="background-color: #00FFFF"></asp:TextBox>
                </td>
                </tr>
                <tr>
                                        <td style="width: 100px; height: 31px; text-align: right; ">
                                            验证码:&nbsp; </td>
                                        <td style="height: 31px; color: red;  vertical-align:bottom">
                                            <asp:TextBox ID="txtCheckCode" runat="server"></asp:TextBox>
                                            *
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtCheckCode"
                            Display="Dynamic" ErrorMessage="验证码不能为空" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                            <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="lblCheckCode"
                            ControlToValidate="txtCheckCode" Display="Dynamic" ErrorMessage="验证码不一致" ValidationGroup="v1"></asp:CompareValidator>
                                            </td>
                                    </tr>
                <tr>
                <td ></td><td ></td>
                </tr>
                <tr>
                    <td >
                    </td>
                    <td style="width: 150px; height: 30px; text-align: left; ">
                        <asp:Button ID="BT2" runat="server" Height="29px" OnClick="BT2_Click" Text="完成" 
                            ValidationGroup="v1" Width="85px" />
                    </td>
                </tr>
            </table>
            <br />
            <br />
        </asp:Panel>
        </td>
        </tr>
    </table>
</asp:Content>
